package com.jcf.springboot.entity.business;

import cn.afterturn.easypoi.excel.annotation.Excel;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 
 * </p>
 *
 * @author jjj
 * @since 2021-03-15
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="Member对象", description="")
public class Member implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "member_id", type = IdType.ID_WORKER_STR)
    private String memberId;

    @Excel(name = "员工账号")
    private String memberName;

    private String memberPassword;
    @Excel(name = "员工姓名")
    private String nickName;
    @Excel(name = "员工性别",replace = { "男_1", "女_0" })
    private int memberSex;
    @Excel(name = "员工简介")
    private String memberProfile;
    @Excel(name="员工电话")
    private String memberPhone;
    @Excel(name="员工邮箱")
    private String memberEmail;

    private String memberAvatar;

    @JsonFormat(pattern="yyyy-MM-dd",timezone = "GMT+8" )
    @Excel(name = "员工生日",format = "yyyy-MM-dd")
    private Date memberBirthday;

    @ApiModelProperty(value = "逻辑删除 1（true）已删除， 0（false）未删除")
    @TableLogic
    private Boolean isDeleted;

    @TableField(fill = FieldFill.INSERT)
    private Date createTime;

    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date modifyTime;


}
